package com.atguigu.ha.mybatisspring.smo;

import com.atguigu.ha.mybatisspring.dao.OfferDao;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Component;
import org.springframework.transaction.annotation.Transactional;

import java.util.List;

/**
 * @Author: hs
 * @Description:
 * @Date: Create in 17:27 2019/2/26
 */
@Component
public class OfferSmoImpl implements OfferSmo {
    @Autowired
    OfferDao offerDao;

    @Override
    @Transactional(rollbackFor = Exception.class)
    public List selectOffer(int age) {
        return offerDao.selectOffer(age);
    }
}
